<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
          integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
            integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
            crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
            integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
            crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
            integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
            crossorigin="anonymous"></script>
</head>
<body>
<div class="container">
    <div class="col">
        <form action="/filterHDD/" method="post">
            {% csrf_token %}
            <table class="table table-hover">
                <tbody>
                <tr>
                    <th>品牌</th>
                    <td>
                        <select class="custom-select" name="Brand">
                            <option selected value="">选择品牌</option>
                            <option value="西部数据">西部数据</option>
                            <option value="希捷">希捷</option>
                            <option value="东芝">东芝</option>
                            <option value="HGST">HGST</option>
                            <option value="易拓">易拓</option>
                            <option value="迈拓">迈拓</option>
                            <option value="三星">三星</option>
                        </select>
                    </td>
                </tr>

                <tr>
                    <th>适用平台</th>
                    <td>
                        <select class="custom-select" name="Platform">
                            <option selected value="">选择平台</option>
                            <option value="台式机">台式机</option>
                            <option value="笔记本">笔记本</option>
                        </select>
                    </td>
                </tr>

                <tr>
                    <th>硬盘容量</th>
                    <td>
                        <select class="custom-select" name="Capacity">
                            <option selected value="">选择硬盘容量</option>
                            <option value="15000GB">15TB</option>
                            <option value="10000GB">10TB</option>
                            <option value="8000GB">8TB</option>
                            <option value="6000GB">6TB</option>
                            <option value="4000GB">4TB</option>
                            <option value="3000GB">3TB</option>
                            <option value="2000GB">2TB</option>
                            <option value="1000GB">1TB</option>
                            <option value="500GB">500GB</option>
                        </select>
                    </td>
                </tr>
                </tbody>
                <tr>
                    <td></td>
                    <th>
                        <button type="submit" class="btn btn-primary">筛选</button>
                    </th>
                </tr>

            </table>
        </form>
    </div>
    <div class="col">
        {% for case in cases %}
        <div class="card">
            <div class="card-body">
                <h5 class="card-title">{{case.Name}}</h5>
                <p class="card-text">适用平台:{{case.Platform}}</p>
                <p class="card-text">硬盘容量:{{case.Capacity}}</p>
                <p class="card-text">价格:￥{{case.Price}}</p>
                <div class="btn-group" role="group" aria-label="Basic example">
                    <form action="/configReturnHDD/" method="post">
                        {% csrf_token %}
                        <input name="id" hidden="hidden" value="{{case.Name}}">
                        <button type="submit" class="btn btn-primary">添加到配置单</button>
                    </form>
                    <form action="/moreInfoHDD/" method="post">
                        {% csrf_token %}
                        <input name="id" hidden="hidden" value="{{case.Name}}">
                        <button type="submit" class="btn btn-primary">详细信息</button>
                    </form>
                </div>
            </div>
        </div>
        {% endfor %}
    </div>
</div>
</body>
</html>